package org.jeecg.modules.demo.st.service;

import org.jeecg.modules.demo.st.entity.StStateJilu;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.st.entity.StStudent;
import org.jeecg.modules.demo.st.vo.StStateJiluForAdmin;
import org.jeecg.modules.demo.st.vo.StatisticsVo;

import java.util.List;

/**
 * @Description: 学生状态记录
 * @Author: jeecg-boot
 * @Date:   2019-10-26
 * @Version: V1.0
 */
public interface IStStateJiluService extends IService<StStateJilu> {
  /*  *
     * 学生状态记录
     * 确认归校
     *comeback
     */
    boolean comeback(StStateJilu stStateJilu);

  boolean updateStatus(StStateJiluForAdmin stStateJiluForAdmin);

  /**
   * 学生状态记录
   * 离校次数
   *comeback
   */
  List<StatisticsVo> getFrequency(String stuId);

  List<StStateJilu> getSchoolRecording(String stName);

  /**
   * 学生状态记录
   * 离校记录
   *comeback
   */
  List<StStateJilu> getRecording(String stuId);

  List<StStateJilu> getLast(String stuId);

  List<StStateJilu> getLasts(List<String> stuId);
}
